<template>
  <div v-loading="loading">
    <iframe :src="Url" width="100%" height="100%" @load="loadAtt" />
  </div>
</template>

<script>
  import { config } from '@/utils'
  import { getToken } from '@/utils/auth'
  export default {
    data() {
      return {
        loading: true,
        // 路径
        Url: config.baseURL + '/ureport/preview?Authorization=Bearer ' + getToken() + '&_u=dataBase:CapTable.ureport.xml&dealId=' + this.$route.query.id + '&_t=6'
      }
    },
    methods: {
      loadAtt() {
        this.loading = false
      }
    }
  }
</script>
